import Layout from '../../page/index'

export default [
    {
        path: '/home',
        name: 'Home',
        component: () => import( /* webpackChunkName: "pagelogin" */ '../../page/home/index'),
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/game',
        name: 'game',
        component: () => import( /* webpackChunkName: "pagelogin" */ '../../page/game/index'),
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/feedback',
        name: 'feedback',
        component: () => import('../../page/feedback/index.vue'),
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/profiles',
        name: 'profiles',
        component: () => import('../../page/profiles/index.vue'),
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/purchases',
        name: 'purchases',
        component: () => import('../../page/purchases/index.vue'),
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/adminDashborad',
        name: 'adminDashborad',
        component: () => import('../../page/adminDashborad/index.vue'),
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/userDashborad',
        name: 'userDashborad',
        component: () => import('../../page/userDashborad/index.vue'),
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import( /* webpackChunkName: "pagelogin" */ '../../page/login/login'),
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/signIn',
        name: 'SignIn',
        component: () => import( /* webpackChunkName: "pagelogin" */ '../../page/signIn/index'),
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/resetPassword',
        name: 'Reset',
        component: () => import( /* webpackChunkName: "pagelogin" */ '../../page/resetPassword/index'),
        meta: {
            keepAlive: true,
            isNotMenu: true,
            isTab: false,
            isAuth: false
        },
    },
    {
        path: '/404',
        component: () => import( /* webpackChunkName: "page404" */ '../../components/error-page/404'),
        name: '404',
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/403',
        component: () => import( /* webpackChunkName: "page403" */ '../../components/error-page/403'),
        name: '403',
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/500',
        component: () => import( /* webpackChunkName: "page500" */ '../../components/error-page/500'),
        name: '500',
        meta: {
            keepAlive: true,
            noLogin: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/',
        name: 'HomePage',
        redirect: window.$getStore({ name: "isIndate" }) && window.$getStore({ name: "isIndate" }).isIndate === false && window.$getStore({ name: "token" }) === window.$getStore({ name: "isIndate" }).token ? '/resetPassword' : '/system/home'
    },
    {
        path: '/myiframe',
        component: Layout,
        redirect: '/myiframe',
        children: [{
            path: ":routerPath",
            name: 'iframe',
            meta: {
                isIframe: true
            }
        }]
    },
    {
        path: '/mycustmerForm',
        component: Layout,
        redirect: '/mycustmerForm',
        children: [{
            path: ":routerPath",
            name: 'mycustmerForm',
            component: () => import( /* webpackChunkName: "mycustmerForm" */ `../../modules/custmerForm/views/module/custmerDynamic`),
            props: true,
            meta: {
                keepAlive: false
            }
        }]
    },
    {
        path: '/myDesktopHome',
        component: Layout,
        redirect: '/myDesktopHome',
        children: [{
            path: ":routerPath",
            name: 'myDesktopHome',
            component: () => import( /* webpackChunkName: "desktop" */ `../../modules/desktop/views/setting/homeDynamic`),
            props: true,
            meta: {
                keepAlive: false
            }
        }]
    },
    {
        path: '/myreport',
        component: Layout,
        redirect: '/myreport',
        children: [{
            path: ":routerPath",
            name: 'myreport',
            component: () => import( /* webpackChunkName: "report" */ `../../modules/report/views/scheme/preview`),
            props: true,
            meta: {
                keepAlive: false
            }
        }]
    },
    {
        path: '*',
        redirect: '/404'
    },
]